﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Web.SessionState;
using System.Web.UI.HtmlControls;

namespace sdamarketing.Forum
{
    public partial class header : System.Web.UI.UserControl
    {

        //header CustomIncludes begin
        protected CCUtility Utility;

        // For each Menu form hiddens for PK's,List of Values and Actions
        protected string Menu_FormAction = ".aspx?";



        public header()
        {
            this.Init += new System.EventHandler(Page_Init);
        }

        // header CustomIncludes end
        //-------------------------------


        public void ValidateNumeric(object source, ServerValidateEventArgs args)
        {
            try
            {
                Decimal temp = Decimal.Parse(args.Value);
                args.IsValid = true;
            }
            catch
            {
                args.IsValid = false;
            }
        }
        //===============================
        // header Show begin
        protected void Page_Load(object sender, EventArgs e)
        {
            Utility = new CCUtility(this);

            if (!IsPostBack)
            {
                Page_Show(sender, e);
            }
        }

        protected void Page_Unload(object sender, EventArgs e)
        {
            if (Utility != null) Utility.DBClose();
        }

        protected void Page_Init(object sender, EventArgs e)
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
        }


        protected void Page_Show(object sender, EventArgs e)
        {
            Menu_Show();
        }

        protected void Menu_Show()
        {
        }

    }
}